﻿using System;

//自定义命名空间
using DreamCube.Framework.Utilities.Remoting;

namespace BGN.Common.Remoting
{
    /// <summary>
    /// 系统命令
    /// </summary>
    public class SystemCommand : BasicObject
    {
        /// <summary>
        /// 公开一个获取系统命令的事件
        /// </summary>
        public event Action<String> SystemCommandFromServer; //接收到从服务器发过来的命令

        /// <summary>
        /// 发送命令到客户端
        /// </summary>
        /// <param name="command"></param>
        public void SendSystemCommandToClient(String command)
        {
            if (SystemCommandFromServer != null)
                SystemCommandFromServer(command);
        }
    }
}
